<?php
    $account_id = $this->session->userdata('doggy.id');
    $account_name = $this->session->userdata('account_name');
    //print_r($requests);
?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Liste des amis</div>
    <table width="100%" class="list">
        <?php foreach ($friends as $aRow): ?>
            <?php 
                $image_ava = './doggy_avatar/images/' . $aRow['avatar'];
                if(file_exists($image_ava) && $aRow['avatar']!=null){
                    $image_ava = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
                } else{
                    $image_ava = root_url('doggy_flirt'). 'assets/noimage.gif';
            }?>
            <tr>
                <td align="center"><div align="center" style="width: 50px;height: 50px;background: transparent"><a href="<?php echo site_url('home/compte/'.$aRow['friend_id']);?>"><img src="<?php echo $image_ava;?>" align="middle" border="0" style="max-width: 50px;max-height: 50px" alt=""/></a></div></td>
                <td style="padding-left: 20px;"><a href="<?php echo site_url('home/compte/'.$aRow['friend_id']);?>"><span class="noun"><?php echo $aRow['display_name']; ?></span></a></td>
                <td align="center"><a href="<?php echo site_url('message/send/' . $aRow['friend_id']); ?>"><img border="0" align="center" title="Envoyer un message" src="<?php echo base_url().'assets/css/'?>images/mess_to_friend.png"/></a></td>
            </tr>

            <?php endforeach; ?>
    </table>
    <div align="center"><font color="blue" style="font-size: large;"><?php if(isset($pagination)){echo $pagination;} ?></font></div> 
</div>
<!--END wrapper-content-->
